import request from '@/router/axios'

export function fetchWxDeptLinkList(query) {
  return request({
    url: '/mp/wxdeptlink/page',
    method: 'get',
    params: query
  })
}

export function addWxDeptLinkObj(obj) {
  return request({
    url: '/mp/wxdeptlink',
    method: 'post',
    data: obj
  })
}

export function getWxDeptLinkObj(id) {
  return request({
    url: '/mp/wxdeptlink/' + id,
    method: 'get'
  })
}

export function delWxDeptLinkObj(id) {
  return request({
    url: '/mp/wxdeptlink/' + id,
    method: 'delete'
  })
}

export function putWxDeptLinkObj(obj) {
  return request({
    url: '/mp/wxdeptlink',
    method: 'put',
    data: obj
  })
}

export function editAllWxDeptLink(obj){
  return request({
    url: '/mp/wxdeptlink/editAllWechatId',
    method: 'post',
    data: obj
  })
}
